Skip to content

Conversation

@TheRealMrG
Copy link
Contributor

The vendor directory is string matched to give it the lowest priority when loading configuration files during discovery. This change sets the prefixed and suffixed directory separator to the PHP constant DIRECTORY_SEPARATOR rather than hard-coding '/'. This allows the match to work when PHP is running on Windows (which uses '' as a directory separator), as well as on other platforms.

Resolves #1526

The vendor directory is string matched to give it the lowest priority when loading configuration files during discovery. This change sets the prefixed and suffixed directory separator to the PHP constant DIRECTORY_SEPARATOR rather than hard-coding '/'. This allows the match to work when PHP is running on Windows - which uses '\' as a directory separator - as well as on other platforms.
@TheRealMrG TheRealMrG changed the title Make directory matching platform agnostic during discovery fix(core): make directory matching platform agnostic during discovery Aug 20, 2025
@innocenzi innocenzi changed the title fix(core): make directory matching platform agnostic during discovery fix(core): discover vendor directory first on all platforms Aug 21, 2025
@brendt brendt merged commit b7dc71e into tempestphp:2.x Aug 21, 2025
78 of 80 checks passed
@brendt
Copy link
Member

brendt commented Aug 21, 2025

Awesome, thanks!

Bapawe pushed a commit to Bapawe/tempest-framework that referenced this pull request Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App Specific Configuration Files May Be Overwritten by Default Files During Discovery on Windows

2 participants